﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentManager.aspx.cs" Inherits="Web.Views.Admin.AgentManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>售票点管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <a href="ManagerUser.aspx">Membership管理</a>
    <div>
    
        <asp:GridView ID="gdvAgentList" runat="server" DataSourceID="odsAgentList" 
            AllowSorting="True" AutoGenerateColumns="False" 
            DataKeyNames="AgentID" AutoGenerateSelectButton="True" >
        <Columns>
           

            <asp:BoundField DataField="LoginName" HeaderText="LoginName" 
                SortExpression="LoginName" />
            
            <asp:BoundField DataField="AgentName" HeaderText="AgentName" 
                SortExpression="AgentName" />
            <asp:BoundField DataField="Linkman" HeaderText="Linkman" 
                SortExpression="Linkman" />
                
            <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
            <asp:BoundField DataField="Address" HeaderText="Address" 
                SortExpression="Address" />
            <asp:BoundField DataField="Telphone" HeaderText="Telphone" 
                SortExpression="Telphone" />

            <asp:BoundField DataField="CreateOn" HeaderText="CreateOn" 
                SortExpression="CreateOn" ReadOnly="true" />
        </Columns>
        </asp:GridView>
    
        <asp:DetailsView ID="dtvAgentInfo" runat="server" AutoGenerateRows="False" 
            DataKeyNames="AgentID" DataSourceID="odsAgentInfo" Height="50px" 
            Width="125px" AutoGenerateInsertButton="True">
            <Fields>
                <asp:BoundField DataField="LoginName" HeaderText="LoginName" 
                    SortExpression="LoginName" />
                <asp:BoundField DataField="AgentName" HeaderText="AgentName" 
                    SortExpression="AgentName" />
                <asp:BoundField DataField="Linkman" HeaderText="Linkman" 
                    SortExpression="Linkman" />
                <asp:BoundField DataField="Address" HeaderText="Address" 
                    SortExpression="Address" />
                <asp:BoundField DataField="Nearby" HeaderText="Nearby" 
                    SortExpression="Nearby" />
                <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                <asp:BoundField DataField="Telphone" HeaderText="Telphone" 
                    SortExpression="Telphone" />
                <asp:BoundField DataField="WorkHours" HeaderText="WorkHours" 
                    SortExpression="WorkHours" />
                <asp:BoundField DataField="WorkQQ" HeaderText="WorkQQ" 
                    SortExpression="WorkQQ" />
                <asp:BoundField DataField="AlipayAccount" HeaderText="AlipayAccount" 
                    SortExpression="AlipayAccount" />
                <asp:BoundField DataField="CreateOn" HeaderText="CreateOn" 
                    SortExpression="CreateOn"  ReadOnly="true"/>
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="odsAgentInfo" runat="server" 
            DataObjectTypeName="Easydp.Models.Entities.TT_Agent" InsertMethod="Insert" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="Getlist" 
            TypeName="Easydp.Controllers.AgentController">
            <SelectParameters>
                <asp:ControlParameter ControlID="gdvAgentList" Name="AgentID" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
        <asp:ObjectDataSource ID="odsAgentList" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataset" 
            TypeName="Easydp.Controllers.AgentController" >
            <SelectParameters>
                <asp:Parameter Name="strWhere" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
